package com.example.superjson.view;

import com.example.superjson.LoginActivity;
import com.example.superjson.R;
import com.example.superjson.application.ApplicationScope;

import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;

public class SettingsView extends FrameLayout{

	private ApplicationScope applicationScope;
	private ImageView imageView_settings;
	private Context context;
	public SettingsView(Context context) {
		super(context);
		this.context = context;
		this.applicationScope = (ApplicationScope) context.getApplicationContext();
		
		LayoutInflater.from(context).inflate(R.layout.view_settings, this);
		imageView_settings = (ImageView) findViewById(R.id.imageView_settings);
		imageView_settings.setOnClickListener(new ViewOnClickListener());
	}

	class ViewOnClickListener implements OnClickListener{
		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			Intent intent = new Intent(context, LoginActivity.class);
			context.startActivity(intent);
		}
		
	}
}
